home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.internetmci.com!gatech!gt-news!news
- From: Chris Lanciani <lanciani@ee.gatech.edu>
- Newsgroups: comp.lang.c
- Subject: Wildcard Expansion in Unix
- Date: Wed, 06 Mar 1996 14:35:16 -0500
- Organization: Georgia Institute of Technology
- Message-ID: <313DE8F4.1478@ee.gatech.edu>
- NNTP-Posting-Host: tecate.eedsp.gatech.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/712)
-
- Does anyone know of a way to perform wildcard expansion, in C,
- on unix platforms? That is, if I write a program that accepts
- filenames as input arguments, how can I make it handle
- "?" and "*" correctly?
-
- I am aware of the findfirst() and findnext() functions for the
- PC (with Borland's compiler, at least), but the portability
- table for these functions does not include unix systems. I
- also know that Borland includes a .obj file that can be linked
- with the program that does the wildcard expansion for you.
- Does such a thing exist with gcc on unix?
-
- Thanks for any hints.
- --
-
- Chris
- Lanciani
- lanciani@eedsp.gatech.edu
-